package com.xyht.sca_s.student_manage_system.modules.assetFixedRepair.entity.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xyht.sca_s.student_manage_system.modules.assetFixedBorrow.entity.dto.SmsAssetFixedBorrowApplyGoodsDTO;
import com.xyht.sca_s.student_manage_system.modules.assetFixedBorrow.entity.dto.SmsAssetFixedBorrowApplyProcessDetailDTO;
import com.xyht.sca_s.student_manage_system.modules.user.entity.resp.SmsSearchUserResp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author XYHT
 * @since 2023-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_asset_fixed_repair_apply")
@ApiModel(value="SmsAssetFixedRepairApply对象", description="")
public class SmsAssetFixedRepairApplyDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private String applyId;

    @ApiModelProperty(value = "申请人id")
    private String applyUserId;

    private String assetId;

    @ApiModelProperty(value = "申请单据标题")
    private String applyName;

    @ApiModelProperty(value = "申请人")
    private String applyPerson;

    @ApiModelProperty(value = "申请部门")
    private String applyDepartment;

    @ApiModelProperty(value = "申请备注")
    private String applyRemark;

    @ApiModelProperty(value = "保修问题")
    private String applyRepairQuestion;

    @ApiModelProperty(value = "保修照片")
    private String applyPic;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除 0：不删除，1删除")
    private Integer isDeleted;

    @ApiModelProperty(value = "审批状态 0：审批中，1：通过，2：驳回，3撤回")
    private Integer allowStatus;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    private List<SmsAssetFixedRepairApplyGoodsDTO> goodsList;

    private List<SmsAssetFixedRepairApplyProcessDetailDTO> processList;

    private SmsSearchUserResp applyUserInfo;

    private SmsSearchUserResp allowUserInfo;

    private String allowUserId;

    @ApiModelProperty(value = "流程节点id")
    private String detailId;

    @ApiModelProperty(value = "审批状态：0：审批中  1：通过   2：驳回   3：撤回结束  4：驳回结束")
    private Integer processDetailStatus;

    @ApiModelProperty(value = "审批备注")
    private String processDetailRemark;


}
